﻿@model ConferenceAttendenceInfoModel
@{
	ViewBag.Title = Resources.ConferenceAttendenceInfo + ConstValues.strDash + ViewBag.ConferenceName;
}
<div id="menuBar" style="height:35px;">
	<div style="float: left; padding: 5px 5px; font-weight: bold; text-align: left;">
		@Resources.AttendenceIdentity：<select id="selAttendenceIdentity" class="easyui-combobox" style="height:27px; width:200px;"></select>&nbsp;&nbsp;
		@Resources.VisaInfo：<select id="selHasVisa" class="easyui-combobox" style="height:27px; width:200px;" data-options="editable:false, panelHeight:'auto'">
			<option value="">@Resources.All</option>
			<option value="@ConstValues.GenericSelectionType.有">@Resources.Yes</option>
			<option value="@ConstValues.GenericSelectionType.无">@Resources.No</option>
		</select>&nbsp;&nbsp;
		@Resources.IsPaid：<select id="selHasPaid" class="easyui-combobox" style="height:27px; width:200px;" data-options="editable:false, panelHeight:'auto'">
			<option value="">@Resources.All</option>
			<option value="@ConstValues.GenericSelectionType.有">@Resources.Yes</option>
			<option value="@ConstValues.GenericSelectionType.无">@Resources.No</option>
		</select>&nbsp;&nbsp;
		@Resources.HasArrived：<select id="selHasArrived" class="easyui-combobox" style="height:27px; width:200px;" data-options="editable:false, panelHeight:'auto'">
			<option value="">@Resources.All</option>
			<option value="@ConstValues.GenericSelectionType.有">@Resources.Yes</option>
			<option value="@ConstValues.GenericSelectionType.无">@Resources.No</option>
		</select>
	</div>
	<div class="clear"></div>
</div>
<div id="menuBar" style="height:35px;">
	<div style="float: left; padding: 5px 5px; font-weight: bold; text-align: left;">
		@Resources.PaidType：<select id="selPaidType" class="easyui-combobox" style="height:27px; width:200px;"></select>&nbsp;&nbsp;
		@Resources.AttendenceId：<input id="selId" class="easyui-textbox" style="height:27px; width:200px;" />&nbsp;&nbsp;
		@Resources.FullName/@Resources.Telephone/@Resources.Mobile/@Resources.Mail/@Resources.Affiliation：<input id="selSearchId" class="easyui-textbox" style="height:27px; width:200px;" />&nbsp;&nbsp;
		<a href="javascript:void(0);" class="easyui-linkbutton" iconcls="icon-search" onclick="searchData();">@Resources.Search</a>&nbsp;&nbsp;
	</div>
	<div class="clear"></div>
</div>
<div id="menuBar" style="height:35px;">
	<div style="float: left; padding: 5px 5px; font-weight: bold; text-align: left;">
		@if ((User as ICISPrincipal).IsSSA || (User as ICISPrincipal).CSAList.Contains(Model.ConferenceId) || Utility.HasConferenceRole((User as ICISPrincipal), Model.ConferenceId, ConstValues.FunctionId.ConferenceUserGroupMaster, RoleType.添加))
		{
			<a href="@Url.Action(nameof(MeetingAttendenceController.Index), nameof(MeetingAttendenceController).GetControllerName())?conferenceId=@Model.ConferenceId" class="easyui-linkbutton" iconcls="icon-add" plain="true">@Resources.Create</a>
			<a href="javascript:void(0);" class="easyui-linkbutton" iconcls="icon-download" onclick="downloadImportTemplate();" plain="true">@Resources.TemplateDownLoad</a>
			<a href="javascript:void(0);" class="easyui-linkbutton" iconcls="icon-import" onclick="openImport();" plain="true">@Resources.Import</a>
		}
		<a href="javascript:void(0);" class="easyui-linkbutton" iconcls="icon-export" onclick="exportData();" plain="true">@Resources.Export</a>
		<a href="javascript:void(0);" class="easyui-linkbutton" iconcls="icon-email" onclick="openQuiz();" plain="true">@Resources.SendQuiz</a>
	</div>
	<div class="clear"></div>
</div>
<div id="dataGrid"></div>

@section bodyParts {
<div id="detailWindow" class="easyui-window"
	title="@Resources.ConferenceAttendenceInfo" data-options="closed:true,minimizable:false,maximizable:false,iconCls:'icon-save'"
	style="width:1200px; display:none;">
	<div class="main">
		<div class="box clearfix">
			<h3 id="detailWindowTitle" class="tit01">@Resources.Modify</h3>
			<div class="formDiv">
				<form id="frmForm" method="post" enctype="multipart/form-data">
					@Html.AntiForgeryToken()
					<span id="ctnForm"></span>
					<input type="hidden" id="hidConferenceId" name="ConferenceId" />
					<input type="hidden" id="hidAttendenceId" name="Id" />
					<input type="hidden" id="hidCurrency" name="Currency" />
					<input type="hidden" id="hidIdentityId" />
					<input type="hidden" id="concurrentEventList" />
					<input type="hidden" id="concurrentEventCount" />
				</form>
			</div>
			<div class="btnDiv" style="margin-top:20px">
				<input type="button" class="gbtn" onclick="saveData();" value="@Resources.Save" />&nbsp;&nbsp;
				<input type="button" class="rbtn" onclick="$('#detailWindow').window('close');" value="@Resources.Cancel" />
			</div>
		</div>
	</div>
</div>
<div id="otherFeeWindow" class="easyui-window"
	title="@Resources.Fee" data-options="closed:true,minimizable:false,maximizable:false,iconCls:'icon-save'"
	style="width:1200px; display:none;">
	<div class="main">
		<div class="box clearfix">
			<h3 id="detailWindowTitle" class="tit01">@Resources.Create</h3>
			<form id="frmFee" method="post">
				@Html.AntiForgeryToken()
				<table id="otherFeeDG"></table>
				<table width="100%" height="100%" id="tblFee" cellpadding="0" cellspacing="1" border="0" class="tastyle01">
					<tr>
						<td style="text-align: right;" class="w1 c1">@Resources.FeeName：</td>
						<td style="text-align: left;" class="w2 c2">
							<input type="hidden" id="hidFeeId" name="Id" />
							<input type="hidden" id="hidFeeAttendenceId" name="AttendenceId" />
							<input id="ddlFeeName" name="OtherFeeId" class="easyui-combogrid" style="height:27px; width:300px;" data-options="required:true" />
						</td>
						<td style="text-align: right;" class="w1 c1">@Resources.Count：</td>
						<td style="text-align: left;" class="w2 c2">
							<input id="ddlCount" name="Count" class="easyui-combobox" style="height:27px; width:300px;" data-options="required:true" />
						</td>
					</tr>
					<tr>
						<td style="text-align: right;" class="w1 c3">@Resources.Price：</td>
						<td style="text-align: left;" class="w2 c4">
							<input id="txtPrice" class="easyui-textbox" style="height:27px; width:300px;" disabled />
						</td>
						<td style="text-align: right;" class="w1 c3">@Resources.Currency：</td>
						<td style="text-align: left;" class="w2 c4">
							<input id="txtCurrency" class="easyui-textbox" style="height:27px; width:300px;" disabled />
						</td>
					</tr>
				</table>
			</form>
			<div class="btnDiv">
				<input type="button" class="gbtn" onclick="addOtherFee();" value="@Resources.Create" />&nbsp;&nbsp;
				<input type="button" class="rbtn" onclick="$('#otherFeeWindow').window('close');" value="@Resources.Cancel" />
			</div>
		</div>
	</div>
</div>
<div id="importWindow" class="easyui-window"
	title="@Resources.Import @Resources.MeetingAttendence" data-options="closed:true,minimizable:false,iconCls:'icon-save'"
	style="width:600px; display:none;">
	<div class="popupDiv">
		<form id="frmImport" method="post" enctype="multipart/form-data">
			@Html.AntiForgeryToken()
			<input type="hidden" id="hidIptConferenceId" name="ConferenceId" />
			<input id="importFile" name="ImportFile" class="easyui-filebox" style="height:27px; width:500px;" data-options="required:true, prompt:'@Resources.Import', buttonText:'@Resources.ChooseFile', accept:'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'" />
		</form>
		<div class="buttonDiv">
			<input type="button" class="btn lbtn" onclick="importData();" value="@Resources.Import" />&nbsp;&nbsp;
			<input type="button" class="btn rbtn" onclick="$('#importWindow').window('close');" value="@Resources.Cancel" />
		</div>
	</div>
</div>
<div id="sendWindow" class="easyui-window"
	title="@Resources.SendQuiz" data-options="closed:true,minimizable:false,iconCls:'icon-save'"
	style="width:600px; display:none;">
	<div class="popupDiv">
		<form id="frmSend" method="post">
			@Html.AntiForgeryToken()
			<select id="ddlQuiz" class="easyui-combobox" style="height:27px; width:500px;"></select>
		</form>
		<div class="buttonDiv">
			<input type="button" class="btn lbtn" onclick="sendQuiz();" value="@Resources.Send" />&nbsp;&nbsp;
			<input type="button" class="btn rbtn" onclick="$('#sendWindow').window('close');" value="@Resources.Cancel" />
		</div>
	</div>
</div>
<div id="personalWindow" class="easyui-window"
	title="@Resources.CheckAttendConferenceInfo" data-options="closed:true,minimizable:false,maximizable:false,iconCls:'icon-save'"
	style="width:1200px; display:none;">
	<div class="main">
		<div class="box clearfix">
			<table width="100%" height="100%" id="personaltblDetail" cellpadding="0" cellspacing="1" border="0" class="tastyle01">
				<tr>
					<td id="personalWindowTitle" style="text-align:left;font-size:18px;font-weight:bold;color:#333;text-indent: -15px;background:#fff;border: 1px solid #BEBEBE;font-size:14px;padding-left: 20px;" class="w1 c8" colspan="4"></td>
				</tr>
				<tr>
					<td style="text-align:left;font-size:18px;font-weight:bold;color:#333;text-indent: -15px;background:#fff;border: 1px solid #BEBEBE;font-size:14px;padding-left: 20px;" class="w1 c8" colspan="4">@Resources.BasicInfo</td>
				</tr>
				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c1">@Resources.AttendenceId：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c2" colspan="2">
						<span id="attendid"></span>
					</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c4" rowspan="6">
						<img id="qrCode" style="height:200px; width:200px;" />
					</td>
				</tr>
				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c3">@Resources.AttendenceIdentity：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c4" colspan="2">
						<span id="attendenceIdentity"></span>
					</td>
				</tr>
				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c1">@Resources.FullName：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c2" colspan="2">
						<span id="fullNamePersonal"></span>
					</td>
				</tr>
				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c3">@Resources.Affiliation：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c4" colspan="2">
						<span id="affiliationPersonal"></span>
					</td>
				</tr>
				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c1">@Resources.Country：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c2" colspan="2">
						<span id="countryPersonal"></span>
					</td>
				</tr>
				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c3">@Resources.Mail：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c4" colspan="2">
						<span id="mailPersonal"></span>
					</td>
				</tr>

				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c1">@Resources.Mobile：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c2" colspan="3">
						<span id="telePersonal"></span>
					</td>
				</tr>
				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c3">@Resources.Address：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c4" colspan="3">
						<span id="addressPersonal"></span>
					</td>
				</tr>
				<tr>
					<td style="text-align:left;font-size:18px;font-weight:bold;color:#333;text-indent: -15px;background:#fff;border: 1px solid #BEBEBE;font-size:14px;padding-left: 20px;" class="w1 c8" colspan="4">@Resources.EssayInfo</td>
				</tr>
				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c1">@Resources.EssayId：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c2" colspan="3">
						<span id="essayIdForPersonal"></span>
					</td>
				</tr>
				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c3">@Resources.ReportId：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c4" colspan="3">
						<span id="reportIdForPersonal"></span>
					</td>
				</tr>
				<tr>
					<td style="text-align:left;font-size:18px;font-weight:bold;color:#333;text-indent: -15px;background:#fff;border: 1px solid #BEBEBE;font-size:14px;padding-left: 20px;" class="w1 c8" colspan="4">@Resources.InvoiceInfo</td>
				</tr>
				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c1">@Resources.InvoiceTitle：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c2" colspan="3">
						<span id="invoiceTitleForPersonal"></span>
					</td>
				</tr>
				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c3">@Resources.TaxNum：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c4" colspan="3">
						<span id="TaxNumForPersonal"></span>
					</td>
				</tr>
				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c1">@Resources.AddressAndTel：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c2" colspan="3">
						<span id="AddressAndMobileForPersonal"></span>
					</td>
				</tr>
				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c3">@Resources.BankAndAccount：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c4" colspan="3">
						<span id="BankAndAccountForPersonal"></span>
					</td>
				</tr>
				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c1">@Resources.InvoiceAmount：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c2">
						<span id=""></span>
					</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c1">@Resources.InvoiceNum：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c2">
						<span id="InvoiceNumForPersonal"></span>
					</td>
				</tr>
				<tr>
					<td style="text-align:left;font-size:18px;font-weight:bold;color:#333;text-indent: -15px;background:#fff;border: 1px solid #BEBEBE;font-size:14px;padding-left: 20px;" class="w1 c8" colspan="4">@Resources.Fee</td>
				</tr>
				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c1">@Resources.PaymentShouldPay：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c2">
						<span id="feePersonal"></span>
					</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c1">@Resources.PaidType：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c2">
						<span id="paidTypePersonal"></span>
					</td>
				</tr>
				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c3">@Resources.PaymentHasPay：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c4">
						<span id="paymentHasPay"></span>
					</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c3">@Resources.PayStatus：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c4">
						<span id="hasPaidForPersonal"></span>
					</td>
				</tr>
				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c1">@Resources.PaymentDetail：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c2" colspan="3">
						<span id="paymentDetailForPersonal"></span>
					</td>
				</tr>
				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c3">@Resources.PayDate：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c4" colspan="3">
						<span id="payDateForPersonal"></span>
					</td>
				</tr>
				@if (Model.CustomizeList.Count > 0)
				{
				<tr>
					<td style="text-align:left;font-size:18px;font-weight:bold;color:#333;text-indent: -15px;background:#fff;border: 1px solid #BEBEBE;font-size:14px;padding-left: 20px;" class="w1 c8" colspan="4">@Resources.Other</td>
				</tr>
				}
				@foreach (var customize in Model.CustomizeList)
				{
				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c1">@customize.DisplayName：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c2" colspan="3">
						<span id="sp+@customize.Key"></span>
					</td>
				</tr>
				}
				<tr>
					<td style="text-align:left;font-size:18px;font-weight:bold;color:#333;text-indent: -15px;background:#fff;border: 1px solid #BEBEBE;font-size:14px;padding-left: 20px;" class="w1 c8" colspan="4">@Resources.Remark</td>
				</tr>
				<tr>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c1">@Resources.Remark：</td>
					<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c2" colspan="3">
						<span id="otherRemarkPersonal"></span>
					</td>
				</tr>
			</table>
			<div class="btnDiv">
				<input type="button" class="rbtn" onclick="$('#personalWindow').window('close');" value="@Resources.Close" />
			</div>
		</div>
	</div>
</div>
<div id="selectOptionWindow" class="easyui-window"
	title="@Resources.SelectExportColumn" data-options="modal:true,closed:true,collapsible:false,minimizable:false,maximizable:false,iconCls:'icon-save'"
	style="width: 1200px; max-height:600px; padding: 0px;display:none;">
	<div class="main">
		<div class="box clearfix">
			<form id="selectOptionDetail" method="post" target="iframeDownload" action="@Url.Action(nameof(ConferenceAttendenceInfoController.Export))">
				@Html.AntiForgeryToken()
				<input type="hidden" id="hdnIds" name="AllId" />
				<input type="hidden" id="hidExtConferenceId" name="ConferenceId" />
				<table width="100%" height="100%" id="tblSelect" cellpadding="0" cellspacing="1" border="0" class="selectOption">
					<tr>
						<td><input type="checkbox" id="chkAll" class="z1" onchange="checkChange(this)"></td>
						<td><a>@Resources.CheckAll</a></td>
						<td></td>
						<td></td>
						<td></td>
						<td></td>
						<td></td>
						<td></td>
						<td></td>
						<td></td>
					</tr>
					<tr>
						<td><input type="checkbox" id="attendenceId" name="attendenceId" class="z1" checked></td>
						<td><a>@Resources.AttendenceId</a></td>
						<td><input type="checkbox" id="attendIdentity" name="attendIdentity" class="z1" checked></td>
						<td><a>@Resources.AttendenceIdentity</a></td>
						<td><input type="checkbox" id="fullName" name="fullName" class="z1" checked></td>
						<td><a>@Resources.FullName</a></td>
						<td><input type="checkbox" id="gender" name="gender" class="z1"></td>
						<td><a>@Resources.Gender</a></td>
						<td><input type="checkbox" id="call" name="call" class="z1"></td>
						<td><a>@Resources.JobTitle</a></td>
					</tr>
					<tr>
						<td><input type="checkbox" id="degree" name="degree" class="z1"></td>
						<td><a>@Resources.HighestEducation</a></td>
						<td><input type="checkbox" id="career" name="career" class="z1"></td>
						<td><a>@Resources.Job</a></td>
						<td><input type="checkbox" id="affiliation" name="affiliation" class="z1" checked></td>
						<td><a>@Resources.Affiliation</a></td>
						<td><input type="checkbox" id="department" name="department" class="z1"></td>
						<td><a>@Resources.Department</a></td>
						<td><input type="checkbox" id="country" name="country" class="z1"></td>
						<td><a>@Resources.Country</a></td>
					</tr>
					<tr>
						<td><input type="checkbox" id="address" name="address" class="z1"></td>
						<td><a>@Resources.Address</a></td>
						<td><input type="checkbox" id="zipCode" name="zipCode" class="z1"></td>
						<td><a>@Resources.ZipCode</a></td>
						<td><input type="checkbox" id="telephone" name="telephone" class="z1"></td>
						<td><a>@Resources.Telephone</a></td>
						<td><input type="checkbox" id="mobile" name="mobile" class="z1" checked></td>
						<td><a>@Resources.Mobile</a></td>
						<td><input type="checkbox" id="mail" name="mail" class="z1" checked></td>
						<td><a>@Resources.Mail</a></td>
					</tr>
					<tr>
						<td><input type="checkbox" id="cardId" name="cardId" class="z1"></td>
						<td><a>@Resources.CardId</a></td>
						<td><input type="checkbox" id="hasArrived" name="hasArrived" class="z1" checked></td>
						<td><a>@Resources.ArriveStatus</a></td>
						<td><input type="checkbox" id="payType" name="payType" class="z1" checked></td>
						<td><a>@Resources.PaidStatus</a></td>
						<td><input type="checkbox" id="paidType" name="paidType" class="z1" checked></td>
						<td><a>@Resources.PaidType</a></td>
						<td><input type="checkbox" id="currency" name="currency" class="z1"></td>
						<td><a>@Resources.Currency</a></td>
					</tr>
					<tr>
						<td><input type="checkbox" id="needPay" name="needPay" class="z1" checked></td>
						<td><a>@Resources.PaymentShouldPay</a></td>
						<td><input type="checkbox" id="actuallyPay" name="actuallyPay" class="z1" checked></td>
						<td><a>@Resources.PaymentHasPay</a></td>
						<td><input type="checkbox" id="feeAttend" name="feeAttend" class="z1"></td>
						<td><a>@Resources.FeeAttend</a></td>
						<td><input type="checkbox" id="feePage" name="feePage" class="z1"></td>
						<td><a>@Resources.FeePage</a></td>
						<td><input type="checkbox" id="mealFee" name="mealFee" class="z1"></td>
						<td><a>@Resources.MealFee</a></td>
					</tr>
					<tr>
						<td><input type="checkbox" id="otherFee" name="otherFee" class="z1"></td>
						<td><a>@Resources.OtherFee</a></td>
						<td><input type="checkbox" id="concurrentEvent" name="concurrentEvent" class="z1"></td>
						<td><a>@Resources.ConcurrentEvent</a></td>
						<td><input type="checkbox" id="dinnerStatus" name="dinnerStatus" class="z1"></td>
						<td><a>@Resources.DinnerStatus</a></td>
						<td><input type="checkbox" id="attendCard" name="attendCard" class="z1"></td>
						<td><a>@Resources.AttendCard</a></td>
						<td><input type="checkbox" id="remark" name="remark" class="z1"></td>
						<td><a>@Resources.Remark</a></td>

					</tr>
					<tr>
						<td><input type="checkbox" id="isInvoice" name="isInvoice" class="z1"></td>
						<td><a>@Resources.IsInvoice</a></td>
						<td><input type="checkbox" id="taxTitle" name="taxTitle" class="z1" checked></td>
						<td><a>@Resources.InvoiceTitle</a></td>
						<td><input type="checkbox" id="taxNum" name="taxNum" class="z1" checked></td>
						<td><a>@Resources.TaxNum</a></td>
						<td><input type="checkbox" id="addressAndTel" name="addressAndTel" class="z1"></td>
						<td><a>@Resources.AddressAndTel</a></td>
						<td><input type="checkbox" id="bank" name="bank" class="z1"></td>
						<td><a>@Resources.Bank</a></td>
					</tr>
					<tr>
						<td><input type="checkbox" id="bankAccount" name="bankAccount" class="z1"></td>
						<td><a>@Resources.BankAccount</a></td>
						<td><input type="checkbox" id="invoiceDetail" name="invoiceDetail" class="z1"></td>
						<td><a>@Resources.InvoiceId</a></td>
						<td><input type="checkbox" id="invoiceNum" name="invoiceNum" class="z1"></td>
						<td><a>@Resources.InvoiceNum</a></td>
						<td><input type="checkbox" id="visaInfo" name="visaInfo" class="z1"></td>
						<td><a>@Resources.Visa</a></td>
						<td><input type="checkbox" id="hasContributed" name="hasContributed" class="z1"></td>
						<td><a>@Resources.EssayId</a></td>
					</tr>
					<tr>
						<td><input type="checkbox" id="favouriteTopic" name="favouriteTopic" class="z1"></td>
						<td><a>@Resources.FavouriteTopic</a></td>
						<td><input type="checkbox" id="sendQuizStatus" name="sendQuizStatus" class="z1"></td>
						<td><a>@Resources.SendQuizStatus</a></td>
						<td><input type="checkbox" id="creator" name="creator" class="z1"></td>
						<td><a>@Resources.Creator</a></td>
						<td><input type="checkbox" id="createIP" name="createIP" class="z1"></td>
						<td><a>@Resources.CreateIP</a></td>
						<td><input type="checkbox" id="createDate" name="createDate" class="z1"></td>
						<td><a>@Resources.CreateDate</a></td>
					</tr>
					@if (Model.CustomizeList.Count > 0)
					{
						<tr>
							@for (var index = 0; index < Model.CustomizeList.Count; index++)
							{
								if (index == 5)
								{
									break;
								}
								<td><input type="checkbox" id="@Model.CustomizeList[index].Key" name="@Model.CustomizeList[index].Key" class="z1"></td>
								<td><a>@Model.CustomizeList[index].DisplayName</a></td>
							}
						</tr>
						if (Model.CustomizeList.Count > 5)
						{
						<tr>
							@for (var index = 5; index < Model.CustomizeList.Count; index++)
							{
							<td><input type="checkbox" id="@Model.CustomizeList[index].Key" name="@Model.CustomizeList[index].Key" class="z1"></td>
							<td><a>@Model.CustomizeList[index].DisplayName</a></td>
							}
						</tr>
						}
					}
				</table>
			</form>
			<iframe id="iframeDownload" style="width:0; height:0; visibility:hidden" tabindex="-1"></iframe>
			<div class="btnDiv">
				<input type="button" class="gbtn" onclick="doExport();" value="@Resources.Confirm" />&nbsp;&nbsp;
				<input type="button" class="rbtn" onclick="$('#selectOptionWindow').window('close');" value="@Resources.Cancel" />
			</div>
		</div>
	</div>
</div>
}

@section Scripts {
<script>
	common.setCurrentMenu("ConferenceAttendenceInfo");

	$(function () {
		$("#hidConferenceId").val("@Model.ConferenceId");
		$("#hidExtConferenceId").val("@Model.ConferenceId");
		common.setCurrentParentMenu("#menu_a1");

		$("#selId").textbox("textbox").bind("keydown", function (e) {
			if (e.keyCode == 13) {
				searchData()
			}
		});

		$("#selSearchId").textbox("textbox").bind("keydown", function (e) {
			if (e.keyCode == 13) {
				searchData()
			}
		});

		var orgCount = 0;
		$("#selAttendenceIdentity").combobox({
			editable: false,
			valueField: "id",
			textField: "name",
			url: "@Url.Action(nameof(UtilityController.GetAttendenceIdentityTypeWithAll), nameof(UtilityController).GetControllerName())"
				+ "?conferenceId=" + $("#hidConferenceId").val(),
			onLoadSuccess: function(data) {
				orgCount = data.length;
				$(this).combobox("setText", "@Resources.All");
			},
			onShowPanel: function () {
				if (orgCount < 10) {
					$(this).combobox("panel").height("auto");
				} else {
					$(this).combobox("panel").height(200);
				}
			}
		});

		var orgCount_2 = 0;
		$("#selPaidType").combobox({
			editable: false,
			valueField: "id",
			textField: "name",
			url: "@Url.Action(nameof(UtilityController.GetPayTypeWithAll),
			nameof(UtilityController).GetControllerName())" + "?conferenceId=" + $("#hidConferenceId").val(),
			onLoadSuccess: function(data) {
				orgCount_2 = data.length;
			},
			onShowPanel: function () {
				if (orgCount_2 < 10) {
					$(this).combobox("panel").height("auto");
				} else {
					$(this).combobox("panel").height(200);
				}
			},
		});

		$("#dataGrid").datagrid({
			url: "@Url.Action(nameof(ConferenceAttendenceInfoController.GetData),
			nameof(ConferenceAttendenceInfoController).GetControllerName(),
			new { ConferenceId = Model.ConferenceId })",
			method: "get",
			checkOnSelect: false,
			width: $(window).width() - 285,
			height: $(window).height() - 158 - 75,
			nowrap: false,
			pagination: true,
			pageSize: @ConstValues.DefaultGridRows,
			striped: true,
			toolbar: "#toolBar",
			pageSize: 100,
			pageList: [100, 200, 300, 400, 500],
			frozenColumns: [[
				{ field: "chk", align: "center", checkbox: true },
				@if ((User as ICISPrincipal).IsSSA || (User as ICISPrincipal).CSAList.Contains(Model.ConferenceId) ||
			Utility.HasConferenceRole((User as ICISPrincipal), Model.ConferenceId, ConstValues.FunctionId.ConferenceAttendenceInfo, RoleType.修改) ||
			Utility.HasConferenceRole((User as ICISPrincipal), Model.ConferenceId, ConstValues.FunctionId.ConferenceAttendenceInfo, RoleType.删除))
		{
			<text>
					{
						field: "operate", title: "@Resources.Operate", align: "center", width: 150,
						formatter: function(value, rec) {
							var strInfo = "";
							var tmp = rec.fullName == null ? "" : rec.fullName.replace(new RegExp("'",'g'),"’").replace(new RegExp('"','g'),"“");
							@if ((User as ICISPrincipal).IsSSA || (User as ICISPrincipal).CSAList.Contains(Model.ConferenceId) || Utility.HasConferenceRole((User as ICISPrincipal), Model.ConferenceId, ConstValues.FunctionId.ConferenceAttendenceInfo, RoleType.修改))
					{
						<text>
							strInfo += "<a href='#' style='color:#66CDAA;font-weight:bold;text-decoration:underline;' onclick='editData(\""
								+ rec.id + "\")'>@Resources.Modify</a>";
							</text>
					}
							@if ((User as ICISPrincipal).IsSSA || (User as ICISPrincipal).CSAList.Contains(Model.ConferenceId) || Utility.HasConferenceRole((User as ICISPrincipal), Model.ConferenceId, ConstValues.FunctionId.ConferenceAttendenceInfo, RoleType.删除))
					{
						<text>
							if (strInfo != "") {
								strInfo += "&nbsp;|&nbsp;";
							}
							strInfo += "<a href='#' style='color:#DC143C;font-weight:bold;text-decoration:underline;' onclick='deleteData(\""
								+ rec.id + "\",\"" + tmp + "\")'>@Resources.Delete</a>";
							</text>
					}
							return strInfo;
						}
					},
					</text>
		}
				{ field: "id", title: "@Resources.AttendenceId", align: "center", sortable: true, width: 200 },
				{
					field: "fullName", title: "@Resources.FullName", align: "center", sortable: true, width: 200,
					formatter: function (value, rec) {
						var tmp = rec.conferenceName == null ? "" : rec.conferenceName.replace(new RegExp("'",'g'),"’").replace(new RegExp('"','g'),"“");
						var strInfo = "<a href='#' style='color:#1874CD;text-decoration:underline;' onclick='showPersonalData(\"" + rec.id + "\",\"" + tmp + "\",\"" + rec.conferenceId + "\")'>" + value + "</a>  ";
						return strInfo;
					}
				},
			]],
			columns: [[
				{
					field: "gender", title: "@Resources.Gender", align: "center", sortable: true, width: 100,
					formatter: function (value, rec) {
						if (value == true) {
							return "@Resources.Male";
						} else if (value == false) {
							return "@Resources.Female";
						} else {
							return "";
						}
					}
				},
				{ field: "title", title: "@Resources.JobTitle", align: "center", sortable: true, width: 150 },
				{ field: "degreeName", title: "@Resources.HighestEducation", align: "center", sortable: true, width: 150 },
				{ field: "job", title: "@Resources.Job", align: "center", sortable: true, width: 150 },
				{ field: "affiliation", title: "@Resources.Affiliation", align: "center", sortable: true, width: 300 },
				{ field: "department", title: "@Resources.Department", align: "center", sortable: true, width: 200 },
				{ field: "identityName", title: "@Resources.AttendenceIdentity", align: "center", sortable: true, width: 200 },
				{ field: "mail", title: "@Resources.Mail", align: "center", sortable: true, width: 250 },
				{ field: "telephone", title: "@Resources.Telephone", align: "center", sortable: true, width: 150 },
				{ field: "mobile", title: "@Resources.Mobile", align: "center", sortable: true, width: 150 },
				{ field: "country", title: "@Resources.Country", align: "center", sortable: true, width: 150 },
				{ field: "state", title: "@Resources.State", align: "center", sortable: true, width: 150 },
				{ field: "city", title: "@Resources.City", align: "center", sortable: true, width: 150 },
				{ field: "address", title: "@Resources.Address", align: "center", sortable: true, width: 300 },
				{ field: "zipCode", title: "@Resources.ZipCode", align: "center", sortable: true, width: 150 },
				{ field: "invoiceTitle", title: "@Resources.InvoiceTitle", align: "center", sortable: true, width: 300 },
				{ field: "taxNum", title: "@Resources.TaxNum", align: "center", sortable: true, width: 200 },
				{ field: "addressAndTel", title: "@Resources.AddressAndTel", align: "center", sortable: true, width: 300 },
				{ field: "bank", title: "@Resources.Bank", align: "center", sortable: true, width: 250 },
				{ field: "bankAccount", title: "@Resources.BankAccount", align: "center", sortable: true, width: 200 },
				{ field: "invoiceDetail", title: "@Resources.InvoiceId", align: "center", sortable: true, width: 200 },
				{ field: "paymentName", title: "@Resources.PaidType", align: "center", sortable: true, width: 150 },
				{
					field: "hasVisa", title: "@Resources.Visa", align: "center", sortable: true, width: 100,
					formatter: function (value, rec) {
						if (value == true) {
							return "@Resources.Yes";
						} else if (value == false) {
							return "@Resources.No";
						} else {
							return "";
						}
					}
				},
				{ field: "totalFee", title: "@Resources.PaymentShouldPay", align: "center", sortable: true, width: 150 },
				{ field: "actuallyFee", title: "@Resources.PaymentHasPay", align: "center", sortable: true, width: 150 },
				{ field: "currency", title: "@Resources.Currency", align: "center", sortable: true, width: 100 },
				{
					field: "hasContributed", title: "@Resources.HasContributed", align: "center", sortable: true, width: 150,
					formatter: function (value, rec) {
						if (value == true) {
							return "@Resources.Yes";
						} else if (value == false) {
							return "@Resources.No";
						} else {
							return "";
						}
					}
				},
				{
					field: "hasPaid", title: "@Resources.PaidStatus", align: "center", sortable: true, width: 150,
					formatter: function (value, rec) {
						if (value == true) {
							return "@Resources.HasPaid";
						} else if (value == false) {
							return "@Resources.HasNotPaid";
						} else {
							return "";
						}
					}
				},
				{
					field: "hasArrived", title: "@Resources.HasArrived", align: "center", sortable: true, width: 150,
					formatter: function (value, rec) {
						if (value == true) {
							return "@Resources.Yes";
						} else if (value == false) {
							return "@Resources.No";
						} else {
							return "";
						}
					}
				},
				{
					field: "hasSendMail", title: "@Resources.SendQuizStatus", align: "center", sortable: true, width: 150,
					formatter: function (value, rec) {
						if (value == true) {
							return "@Resources.HasSend";
						} else if (value == false) {
							return "@Resources.HasNotSend";
						} else {
							return "";
						}
					}
				},
				{ field: "creator", title: "@Resources.Creator", align: "center", sortable: true, width: 100 },
				{ field: "createIP", title: "@Resources.CreateIP", align: "center", sortable: true, width: 150 },
				{ field: "createDate", title: "@Resources.CreateDate", align: "center", sortable: true, width: 150 },
			]],
			onBeforeLoad: function(param) {
				param.conferenceId = $("#hidConferenceId").val();
				param.random = Math.random();
			},
			onLoadSuccess: function(data) {
				var exportIdList = $("#hdnIds").val();
				if (data.rows.length > 0) {
					var exportIdArray = exportIdList.split(',');
					for (var rowIndex = 0; rowIndex < data.rows.length; rowIndex++) {
						for (var index = 0; index < exportIdArray.length; index++) {
							if (data.rows[rowIndex].id == exportIdArray[index]) {
								$("input[type='checkbox']").eq(rowIndex + 1).prop("checked", true);
								break;
							}
						}
					}
				}
			},
			onCheck: function (rowIndex, rowData) {
				var exportIdList = $("#hdnIds").val();
				var strId = rowData.id.toString();
				if (exportIdList == "") {
					$("#hdnIds").val(strId);
				} else {
					var exportIdArray = exportIdList.split(',');
					var newArray = exportIdArray.concat(strId);
					$("#hdnIds").val(newArray.join());
				}
			},
			onUncheck: function (rowIndex, rowData) {
				var exportIdList = $("#hdnIds").val();
				var exportIdArray = exportIdList.split(',');
				var strId = rowData.id.toString();
				exportIdArray.remove(strId);
				$("#hdnIds").val(exportIdArray.join());
			},
			onCheckAll: function (rows) {
				var exportIdList = $("#hdnIds").val();
				if (exportIdList == "") {
					var newArray = new Array();
					for (var index = 0; index < rows.length; index++) {
						var strId = rows[index].id.toString();
						newArray = newArray.concat(strId);
					}
					$("#hdnIds").val(newArray.join());
				} else {
					var exportIdArray = exportIdList.split(',');
					var newArray = exportIdArray;
					for (var index = 0; index < rows.length; index++) {
						var strId = rows[index].id.toString();
						if (newArray.indexOf(strId) < 0) {
							newArray = newArray.concat(strId);
						}
					}
					$("#hdnIds").val(newArray.join());
				}
			},
			onUncheckAll: function (rows) {
				var exportIdList = $("#hdnIds").val();
				var exportIdArray = exportIdList.split(',');
				for (var index = 0; index < rows.length; index++) {
					var strId = rows[index].id.toString();
					exportIdArray.remove(strId);
				}
				$("#hdnIds").val(exportIdArray.join());
			},
		});

		$(window).resize(function () {
			$("#dataGrid").datagrid("resize", {
				width: $(window).width() - 285,
				height: $(window).height() - 158
			});
		});

		$("#importWindow").window({
			onOpen: function () {
				$(this).scrollTop(0);
			},
			top: ($(window).height() - 600) * 0.5
		});

		$("#detailWindow").window({
			onOpen: function () {
				$(this).scrollTop(0);
				$("#ctnForm").html("");
			},
			height: 800,
			top: 100
		});

		$("#otherFeeWindow").window({
			onOpen: function () {
				$(this).scrollTop(0);
			},
			top: ($(window).height() - 600) * 0.5
		})

		$("#sendWindow").window({
			onOpen: function () {
				$(this).scrollTop(0);
			},
			top: ($(window).height() - 600) * 0.5
		});

		$("#personalWindow").window({
			onOpen: function () {
				$(this).scrollTop(0);
			},
			height: 800,
			top: 100
		});

		var orgCount_3 = 0;
		$("#ddlQuiz").combobox({
			required: true,
			editable: false,
			valueField: "id",
			textField: "name",
			url: "@Url.Action(nameof(UtilityController.GetQuiz), nameof(UtilityController).GetControllerName())"
					+ "?conferenceId=" + $("#hidConferenceId").val(),
			onLoadSuccess: function(data) {
				orgCount_3 = data.length;
			},
			onShowPanel: function () {
				if (orgCount_3 < 10) {
					$(this).combobox("panel").height("auto");
				} else {
					$(this).combobox("panel").height(200);
				}
			}
		});
	});

	function searchData() {
		$("#hdnIds").val("");
		$("#dataGrid").datagrid("load", {
			SelAttendenceIdentity: $("#selAttendenceIdentity").combobox("getValue"),
			SelHasVisa: $("#selHasVisa").combobox("getValue"),
			SelHasPaid: $("#selHasPaid").combobox("getValue"),
			SelHasArrived: $("#selHasArrived").combobox("getValue"),
			SelPaidType:  $("#selPaidType").combobox("getValue"),
			SelSearchId: $("#selSearchId").textbox("getValue"),
			SelId: $("#selId").textbox("getValue"),
		});
	}

	function exportData() {
		var exportIdList = $("#hdnIds").val();

		$("input[name='attendenceId']").prop("checked",true)
		$("input[name='attendIdentity']").prop("checked",true)
		$("input[name='fullName']").prop("checked",true)
		$("input[name='affiliation']").prop("checked",true)
		$("input[name='mobile']").prop("checked",true)
		$("input[name='mail']").prop("checked",true)
		$("input[name='hasArrived']").prop("checked",true)
		$("input[name='payType']").prop("checked",true)
		$("input[name='paidType']").prop("checked",true)
		$("input[name='needPay']").prop("checked",true)
		$("input[name='actuallyPay']").prop("checked",true)
		$("input[name='taxTitle']").prop("checked",true)
		$("input[name='taxNum']").prop("checked",true)

		$("input[name='gender']").prop("checked", false);
		$("input[name='call']").prop("checked", false);
		$("input[name='degree']").prop("checked", false);
		$("input[name='career']").prop("checked", false);
		$("input[name='department']").prop("checked", false);
		$("input[name='country']").prop("checked", false);
		$("input[name='zipCode']").prop("checked", false);
		$("input[name='invoiceDetail']").prop("checked", false);
		$("input[name='visaInfo']").prop("checked", false);

		$("input[name='currency']").prop("checked", false);
		$("input[name='hasContributed']").prop("checked", false);
		$("input[name='sendQuizStatus']").prop("checked", false);
		$("input[name='address']").prop("checked", false);
		$("input[name='cardId']").prop("checked", false);
		$("input[name='creator']").prop("checked", false);
		$("input[name='createIP']").prop("checked", false);
		$("input[name='createDate']").prop("checked", false);
		$("input[name='telephone']").prop("checked", false);
		$("input[name='feeAttend']").prop("checked", false);
		$("input[name='feePage']").prop("checked", false);
		$("input[name='mealFee']").prop("checked", false);
		$("input[name='otherFee']").prop("checked", false);
		$("input[name='concurrentEvent']").prop("checked", false);
		$("input[name='dinnerStatus']").prop("checked", false);
		$("input[name='attendCard']").prop("checked", false);
		$("input[name='remark']").prop("checked", false);
		$("input[name='isInvoice']").prop("checked", false);
		$("input[name='invoiceNum']").prop("checked", false);
		$("input[name='favouriteTopic']").prop("checked", false);
		$("input[name='addressAndTel']").prop("checked", false);
		$("input[name='bank']").prop("checked", false);
		$("input[name='bankAccount']").prop("checked", false);

		$("input[name='Customize1']").prop("checked", false);
		$("input[name='Customize2']").prop("checked", false);
		$("input[name='Customize3']").prop("checked", false);
		$("input[name='Customize4']").prop("checked", false);
		$("input[name='Customize5']").prop("checked", false);
		$("input[name='Customize6']").prop("checked", false);
		$("input[name='Customize7']").prop("checked", false);
		$("input[name='Customize8']").prop("checked", false);
		$("input[name='Customize9']").prop("checked", false);
		$("input[name='Customize10']").prop("checked", false);

		if (exportIdList == "") {
			$.messager.alert("@Resources.Export", "@Resources.MsgRecordMust", "warning");
			return;
		}
		$("#selectOptionWindow").window("open");
	}

	function checkChange(value) {
		if (value.checked) {
			$("#tblSelect input[type=checkbox]:not(:checked)").each(function () {
				$("#"+this.id).prop("checked", true);
			})
		} else {
			$("#tblSelect input[type=checkbox]:checked").each(function () {
				$("#"+this.id).prop("checked", false);
			})
		}
	}

	function doExport() {
		$("#selectOptionDetail").submit();
		$("#selectOptionWindow").window("close");
	}

	function editData(id) {
		var conferenceId = "@Model.ConferenceId";
		$("#hidConferenceId").val(conferenceId);
		$("#hidAttendenceId").val(id);

		var loading = layer.load(0,  {
			shade: [0.4,"#fff"]
		});
		var url = "@Url.Action(nameof(UtilityController.GetCurrentPageValue),
			nameof(UtilityController).GetControllerName())" + "?id=" + id;

		$.get(url, null, function (dt, textStatus, jqXHR) {
			if (dt.result == "@ConstValues.AjaxSuccessResult") {
				$("#ctnForm").append("<div id='divCurrency'><div class='titleDiv'>@Resources.Currency：</div>"
					+ "<div class='contentDiv'><select id='ddlCurrency' class='easyui-combobox' style='height:27px; width:500px'></select></div>"
					+ "<div class='clear'></div></div>"
				);

				var url = "@Url.Action(nameof(UtilityController.GetCurrency),
					nameof(UtilityController).GetControllerName())" + "?conferenceId=" + $("#hidConferenceId").val();
				$.get(url, null, function (data, textStatus, jqXHR) {
					if (data.data.length == 0) {
						$("#divCurrency").attr("style","display:none");
					} else {
						$("#divCurrency").attr("style","display:block");
						$("#ddlCurrency").combobox({
							data: data.data,
							required: true,
							editable: false,
							valueField: "currency",
							textField: "currency",
							panelHeight: "auto",
							onLoadSuccess: function(data) {
								$("#ddlCurrency").combobox("setValue", dt.data.currency);
							},
							onSelect: function (rec) {
								$("#hidCurrency").val(rec.currency);

								url = "@Url.Action(nameof(UtilityController.GetCurrentPageItem),
										nameof(UtilityController).GetControllerName())?conferenceId=" + $("#hidConferenceId").val();
								$.get(url, null, function (data, textStatus, jqXHR) {
									if (data.result == "@ConstValues.AjaxSuccessResult") {
										for (var index = 0; index < data.data.length; index++) {
											if (data.data[index].key == "AttendenceIdentity") {
												var applyIdentity = $("#applyIdentity").val();
												var newValue = $("#txtAttendenceIdentity").combobox("getValue");
												if (applyIdentity.indexOf(newValue) != -1 || $("#concurrentEventList").val() == "") {
													var loading = layer.load(0,  {
														shade: [0.4,"#fff"]
													});
													$("#concurrentEvent").empty()
													setConcurrentEvent(newValue, rec.currency)
													fillback($("#concurrentEventList").val(), $("#concurrentEventCount").val(), loading);
												} else {
													$.messager.confirm("@Resources.Confirm", "@Resources.ChangeIdentityConfirmMsg", function (r) {
														if (r) {
															var loading = layer.load(0,  {
																shade: [0.4,"#fff"]
															});
															$("#concurrentEvent").empty()
															setConcurrentEvent(newValue, $("#hidCurrency").val())
															setTimeout(function () {
																var tableList = document.getElementsByName("eventTable")
																for (var i = 0; i<tableList.length; i++) {
																	var tableId = tableList[i].id
																	$("#"+tableId).show();
																}
																layer.close(loading);
															}, 1000);
														} else {
															$("#txtAttendenceIdentity").combobox("setValue", $("#hidIdentityId").val())
														}
													});
												}
											}
											else if (data.data[index].key == "Page") {
												var orgCount = 0;
												$("#txtPage").combogrid({
													prompt: data.data[index].tip,
													required: data.data[index].isRequired,
													editable: false,
													idField: "id",
													textField: "name",
													url: "@Url.Action(nameof(UtilityController.GetFeePage), nameof(UtilityController).GetControllerName())"
															+ "?conferenceId=" + $("#hidConferenceId").val() + "&currency=" + $("#hidCurrency").val(),
													columns:[[
														{ field: "id", hidden: true },
														{ field: "name", title: "@Resources.FeeName", width: 358 },
														{ field: "currency", title: "@Resources.Currency", width: 80 },
														{ field: "price", title: "@Resources.Price", width: 60 }
													]],
													onLoadSuccess: function(data) {
														orgCount = data.length;
													},
													onShowPanel: function () {
														if (orgCount < 10) {
															$(this).combogrid("panel").height("auto");
														} else {
															$(this).combogrid("panel").height(200);
														}
													}
												});
											}
											else if (data.data[index].key == "Attendence") {
												var orgCount = 0;
												$("#txtAttendence").combogrid({
													prompt: data.data[index].tip,
													required: data.data[index].isRequired,
													editable: false,
													idField: "id",
													textField: "name",
													url: "@Url.Action(nameof(UtilityController.GetFeeAttendence), nameof(UtilityController).GetControllerName())"
															+ "?conferenceId=" + $("#hidConferenceId").val() + "&currency=" + $("#hidCurrency").val(),
													columns:[[
														{ field: "id", hidden: true },
														{ field: "name", title: "@Resources.AttendenceIdentity", width: 238 },
														{ field: "currency", title: "@Resources.Currency", width: 80 },
														{ field: "price", title: "@Resources.Price", width: 60 },
														{ field: "discount", title: "@Resources.Discount", width: 120 }
													]],
													onLoadSuccess: function(data) {
														orgCount = data.length;
													},
													onShowPanel: function () {
														if (orgCount < 10) {
															$(this).combogrid("panel").height("auto");
														} else {
															$(this).combogrid("panel").height(200);
														}
													}
												});
											}
											else if (data.data[index].key == "Meal") {
												var orgCount = 0;
												$("#txtMeal").combogrid({
													prompt: data.data[index].tip,
													required: data.data[index].isRequired,
													editable: false,
													idField: "id",
													textField: "name",
													url: "@Url.Action(nameof(UtilityController.GetFeeMeal), nameof(UtilityController).GetControllerName())"
															+ "?conferenceId=" + $("#hidConferenceId").val() + "&currency=" + $("#hidCurrency").val(),
													columns:[[
														{ field: "id", hidden: true },
														{ field: "name", title: "@Resources.FeeName", width: 238 },
														{ field: "currency", title: "@Resources.Currency", width: 80 },
														{ field: "price", title: "@Resources.Price", width: 60 },
														{ field: "count", title: "@Resources.EatTotalTimes", width: 120 },
													]],
													onLoadSuccess: function(data) {
														orgCount = data.length;
													},
													onShowPanel: function () {
														if (orgCount < 10) {
															$(this).combogrid("panel").height("auto");
														} else {
															$(this).combogrid("panel").height(200);
														}
													}
												});
											}
										}
									}
								});
							}
						});
					}
				});
				$("#hidCurrency").val(dt.data.currency);

				url = "@Url.Action(nameof(UtilityController.GetCurrentPageItem),
				nameof(UtilityController).GetControllerName())?conferenceId=" + $("#hidConferenceId").val();
				$.get(url, null, function (data, textStatus, jqXHR) {
					if (data.result == "@ConstValues.AjaxSuccessResult") {
						for (var index = 0; index < data.data.length; index++) {
							if (data.data[index].key == "Mail") {
								$("#ctnForm").append("<div class='titleDiv'>" + data.data[index].displayName + "：</div>"
									+ "<div class='contentDiv'>"
									+ "<input class='easyui-textbox' style='height:27px; width:500px' id='txtMail' name='Mail' />"
									+ "</div>"
									+ "<div class='clear'></div>"
								);

								$("#txtMail").textbox({ disabled: true });
							}
							else if (data.data[index].key == "Gender") {
								$("#ctnForm").append("<div class='titleDiv'>" + data.data[index].displayName + "：</div>"
									+ "<div class='contentDiv'>"
									+ "<input class='easyui-combobox' style='height:27px; width:500px' id='txtGender' name='Gender' />"
									+ "&nbsp;&nbsp;<a href='javascript:void(0)' class='easyui-linkbutton' id='txtGenderClear' onclick='$(\"#txtGender\").combobox(\"clear\");'>@Resources.Clear</a>"
									+ "</div>"
									+ "<div class='clear'></div>"
								);

								$("#txtGender").combobox({
									prompt: data.data[index].tip,
									required: data.data[index].isRequired,
									editable: false,
									valueField: "id",
									textField: "name",
									panelHeight: "auto",
									data: [{ "id": "@ConstValues.Gender.男", "name":"@Resources.Male" },
										{ "id":"@ConstValues.Gender.女", "name":"@Resources.Female" }]
								});
							}
							else if (data.data[index].key == "Title") {
								$("#ctnForm").append("<div class='titleDiv'>" + data.data[index].displayName + "：</div>"
									+ "<div class='contentDiv'>"
									+ "<input class='easyui-combobox' style='height:27px; width:500px' id='txtTitle' name='Title' />"
									+ "&nbsp;&nbsp;<a href='javascript:void(0)' class='easyui-linkbutton' id='txtTitleClear' onclick='$(\"#txtTitle\").combobox(\"clear\");'>@Resources.Clear</a>"
									+ "</div>"
									+ "<div class='clear'></div>"
								);

								var orgCount = 0;
								$("#txtTitle").combobox({
									prompt: data.data[index].tip,
									required: data.data[index].isRequired,
									editable: false,
									valueField: "id",
									textField: "name",
									url: "@Url.Action(nameof(UtilityController.GetTitle), nameof(UtilityController).GetControllerName())"
											+ "?conferenceId=" + $("#hidConferenceId").val(),
									onLoadSuccess: function(data) {
										orgCount = data.length;
									},
									onShowPanel: function () {
										if (orgCount < 10) {
											$(this).combobox("panel").height("auto");
										} else {
											$(this).combobox("panel").height(200);
										}
									}
								});
							}
							else if (data.data[index].key == "Degree") {
								$("#ctnForm").append("<div class='titleDiv'>" + data.data[index].displayName + "：</div>"
									+ "<div class='contentDiv'>"
									+ "<input class='easyui-combobox' style='height:27px; width:500px' id='txtDegree' name='Degree' />"
									+ "&nbsp;&nbsp;<a href='javascript:void(0)' class='easyui-linkbutton' id='txtDegreeClear' onclick='$(\"#txtDegree\").combobox(\"clear\");'>@Resources.Clear</a>"
									+ "</div>"
									+ "<div class='clear'></div>"
								);

								var orgCount = 0;
								$("#txtDegree").combobox({
									prompt: data.data[index].tip,
									required: data.data[index].isRequired,
									editable: false,
									valueField: "id",
									textField: "name",
									url: "@Url.Action(nameof(UtilityController.GetDegree), nameof(UtilityController).GetControllerName())",
									onLoadSuccess: function(data) {
										orgCount = data.length;
									},
									onShowPanel: function () {
										if (orgCount < 10) {
											$(this).combobox("panel").height("auto");
										} else {
											$(this).combobox("panel").height(200);
										}
									}
								});
							}
							else if (data.data[index].key == "Country") {
								$("#ctnForm").append("<div class='titleDiv'>" + data.data[index].displayName + "：</div>"
									+ "<div class='contentDiv'>"
									+ "<input class='easyui-combobox' style='height:27px; width:500px' id='txtCountry' name='Country' />"
									+ "&nbsp;&nbsp;<a href='javascript:void(0)' class='easyui-linkbutton' id='txtCountryClear' onclick='$(\"#txtCountry\").combobox(\"clear\");'>@Resources.Clear</a>"
									+ "</div>"
									+ "<div class='clear'></div>"
									+ "<div class='titleDiv'>@Resources.State：</div>"
									+ "<div class='contentDiv'><input class='easyui-textbox' style='height:27px; width:500px' id='txtState' name='State' /></div>"
									+ "<div class='clear'></div>"
									+ "<div class='titleDiv'>@Resources.City：</div>"
									+ "<div class='contentDiv'><input class='easyui-textbox' style='height:27px; width:500px' id='txtCity' name='City' /></div>"
									+ "<div class='clear'></div>"
								);

								$("#txtCountry").combobox({
									prompt: data.data[index].tip,
									required: data.data[index].isRequired,
									valueField: "id",
									textField: "name",
									url: "@Url.Action(nameof(UtilityController.GetCountry), nameof(UtilityController).GetControllerName())",
								});

								$("#txtState").textbox({ validType: "length[1,100]" });
								$("#txtCity").textbox({ validType: "length[1,100]" });
							}
							else if (data.data[index].key == "AttendenceIdentity") {
								$("#ctnForm").append("<div class='titleDiv'>" + data.data[index].displayName + "：</div>"
									+ "<div class='contentDiv'>"
									+ "<input class='easyui-combobox' style='height:27px; width:500px' id='txtAttendenceIdentity' name='AttendenceIdentityId' />"
									+ "&nbsp;&nbsp;<a href='javascript:void(0)' class='easyui-linkbutton' id='txtAttendenceIdentityClear' onclick='$(\"#txtAttendenceIdentity\").combobox(\"clear\");'>@Resources.Clear</a>"
									+ "</div>"
									+" <input type='hidden' id='applyIdentity'>"
									+ "<div class='clear'></div>"
								);

								var orgCount = 0;
								$("#txtAttendenceIdentity").combobox({
									prompt: data.data[index].tip,
									required: data.data[index].isRequired,
									editable: false,
									valueField: "id",
									textField: "name",
									url: "@Url.Action(nameof(UtilityController.GetAttendenceIdentityType), nameof(UtilityController).GetControllerName())"
											+ "?conferenceId=" + $("#hidConferenceId").val(),
									onLoadSuccess: function(data) {
										orgCount = data.length;
									},
									onShowPanel: function () {
										if (orgCount < 10) {
											$(this).combobox("panel").height("auto");
										} else {
											$(this).combobox("panel").height(200);
										}
									},
									onSelect: function (newValue) {
										var applyIdentity = $("#applyIdentity").val()
										if (applyIdentity.indexOf(newValue.id) != -1 || $("#concurrentEventList").val() == "") {
											var loading = layer.load(0,  {
												shade: [0.4,"#fff"]
											});
											$("#concurrentEvent").empty()
											setConcurrentEvent(newValue.id, $("#hidCurrency").val())
											fillback($("#concurrentEventList").val(), $("#concurrentEventCount").val(), loading);
										} else {
											$.messager.confirm("@Resources.Confirm", "@Resources.ChangeIdentityConfirmMsg", function (r) {
												if (r) {
													var loading = layer.load(0,  {
														shade: [0.4,"#fff"]
													});
													$("#concurrentEvent").empty()
													setConcurrentEvent(newValue.id, $("#hidCurrency").val())
													setTimeout(function () {
														var tableList = document.getElementsByName("eventTable")
														for (var i = 0; i < tableList.length; i++) {
															var tableId = tableList[i].id
															$("#"+tableId).show();
														}
														layer.close(loading);
													}, 1000);
												} else {
													$("#txtAttendenceIdentity").combobox("setValue", $("#hidIdentityId").val())
												}
											});
										}
									}
								});
							}
							else if (data.data[index].key == "Attendence") {
								$("#ctnForm").append("<div class='titleDiv'>" + data.data[index].displayName + "：</div>"
									+ "<div class='contentDiv'>"
									+ "<input class='easyui-combogrid' style='height:27px; width:500px' id='txtAttendence' name='AttendenceFeeId' />"
									+ "&nbsp;&nbsp;<a href='javascript:void(0)' class='easyui-linkbutton' id='txtAttendenceClear' onclick='$(\"#txtAttendence\").combogrid(\"clear\");'>@Resources.Clear</a>"
									+ "</div>"
									+ "<div class='clear'></div>"
								);

								var orgCount = 0;
								$("#txtAttendence").combogrid({
									prompt: data.data[index].tip,
									required: data.data[index].isRequired,
									editable: false,
									idField: "id",
									textField: "name",
									url: "@Url.Action(nameof(UtilityController.GetFeeAttendence), nameof(UtilityController).GetControllerName())"
											+ "?conferenceId=" + $("#hidConferenceId").val() + "&currency=" + $("#hidCurrency").val(),
									columns:[[
										{ field: "id", hidden: true },
										{ field: "name", title: "@Resources.AttendenceIdentity", width: 238 },
										{ field: "currency", title: "@Resources.Currency", width: 80 },
										{ field: "price", title: "@Resources.Price", width: 60 },
										{ field: "discount", title: "@Resources.Discount", width: 120 }
									]],
									onLoadSuccess: function(data) {
										orgCount = data.length;
									},
									onShowPanel: function () {
										if (orgCount < 10) {
											$(this).combogrid("panel").height("auto");
										} else {
											$(this).combogrid("panel").height(200);
										}
									}
								});
							}
							else if (data.data[index].key == "Page") {
								$("#ctnForm").append("<div class='titleDiv'>" + data.data[index].displayName + "：</div>"
									+ "<div class='contentDiv'>"
									+ "<input class='easyui-combogrid' style='height:27px; width:500px' id='txtPage' name='PageFeeId' />"
									+ "&nbsp;&nbsp;<a href='javascript:void(0)' class='easyui-linkbutton' id='txtPageClear' onclick='$(\"#txtPage\").combogrid(\"clear\");'>@Resources.Clear</a>"
									+ "</div>"
									+ "<div class='clear'></div>"
								);

								var orgCount = 0;
								$("#txtPage").combogrid({
									prompt: data.data[index].tip,
									required: data.data[index].isRequired,
									editable: false,
									idField: "id",
									textField: "name",
									url: "@Url.Action(nameof(UtilityController.GetFeePage), nameof(UtilityController).GetControllerName())"
											+ "?conferenceId=" + $("#hidConferenceId").val() + "&currency=" + $("#hidCurrency").val(),
									columns:[[
										{ field: "id", hidden: true },
										{ field: "name", title: "@Resources.FeeName", width: 358 },
										{ field: "currency", title: "@Resources.Currency", width: 80 },
										{ field: "price", title: "@Resources.Price", width: 60 }
									]],
									onLoadSuccess: function(data) {
										orgCount = data.length;
									},
									onShowPanel: function () {
										if (orgCount < 10) {
											$(this).combogrid("panel").height("auto");
										} else {
											$(this).combogrid("panel").height(200);
										}
									}
								});
							}
							else if (data.data[index].key == "Meal") {
								$("#ctnForm").append("<div class='titleDiv'>" + data.data[index].displayName + "：</div>"
									+ "<div class='contentDiv'>"
									+ "<input class='easyui-combogrid' style='height:27px; width:500px' id='txtMeal' name='MealFeeId' />"
									+ "&nbsp;&nbsp;<a href='javascript:void(0)' class='easyui-linkbutton' id='txtMealClear' onclick='$(\"#txtMeal\").combogrid(\"clear\");'>@Resources.Clear</a>"
									+ "</div>"
									+ "<div class='clear'></div>"
								);

								var orgCount = 0;
								$("#txtMeal").combogrid({
									prompt: data.data[index].tip,
									required: data.data[index].isRequired,
									editable: false,
									idField: "id",
									textField: "name",
									url: "@Url.Action(nameof(UtilityController.GetFeeMeal), nameof(UtilityController).GetControllerName())"
											+ "?conferenceId=" + $("#hidConferenceId").val() + "&currency=" + $("#hidCurrency").val(),
									columns:[[
										{ field: "id", hidden: true },
										{ field: "name", title: "@Resources.FeeName", width: 238 },
										{ field: "currency", title: "@Resources.Currency", width: 80 },
										{ field: "price", title: "@Resources.Price", width: 60 },
										{ field: "count", title: "@Resources.EatTotalTimes", width: 120 },
									]],
									onLoadSuccess: function(data) {
										orgCount = data.length;
									},
									onShowPanel: function () {
										if (orgCount < 10) {
											$(this).combogrid("panel").height("auto");
										} else {
											$(this).combogrid("panel").height(200);
										}
									}
								});
							}
							else if (data.data[index].key == "Other") {
								$("#ctnForm").append("<div class='titleDiv'>" + data.data[index].displayName + "：</div>"
									+ "<div class='contentDiv'>"
									+ "<input type='button' class='abtn' onclick='openOtherFee();' value='@Resources.Create@Resources.OtherFee' />"
									+ "</div>"
									+ "<div class='clear'></div>"
								);
							}
							else if (data.data[index].key == "InvoiceTitle") {
								$("#ctnForm").append("<div class='titleDiv'>" + data.data[index].displayName + "：</div>"
									+ "<div class='contentDiv'>"
									+ "<input class='easyui-combobox' style='height:27px; width:500px' id='txtInvoiceTitle' name='InvoiceTitle' />"
									+ "</div>"
									+ "<div class='clear'></div>"
								);

								var orgCount = 0;
								$("#txtInvoiceTitle").combobox({
									url: "@Url.Action(nameof(UtilityController.GetInvoiceInfo), nameof(UtilityController).GetControllerName())",
									prompt: data.data[index].tip,
									required: data.data[index].isRequired,
									valueField: "invoiceTitle",
									textField: "invoiceTitle",
									panelHeight: "auto",
									hasDownArrow: false,
									onLoadSuccess: function(data) {
										orgCount = data.length;
									},
									onChange: function (n,o) {
										$("#txtTaxNum").textbox("setValue", "");
										$("#txtAddressAndTel").textbox("setValue", "");
										$("#txtBank").textbox("setValue", "");
										$("#txtBankAccount").textbox("setValue", "");
									},
									onSelect: function (rec) {
										$("#txtTaxNum").textbox("setValue", rec.taxNum);
										$("#txtAddressAndTel").textbox("setValue", rec.addressAndTel);
										$("#txtBank").textbox("setValue", rec.bank);
										$("#txtBankAccount").textbox("setValue", rec.bankAccount);
									},
									onShowPanel: function () {
										if (orgCount < 10) {
											$(this).combobox("panel").height("auto");
										} else {
											$(this).combobox("panel").height(200);
										}
									},
									onHidePanel: function () { }
								});
							}
							else if (data.data[index].key == "TaxNum") {
								$("#ctnForm").append("<div class='titleDiv'>" + data.data[index].displayName + "：</div>"
									+ "<div class='contentDiv'>"
									+ "<input class='easyui-textbox' style='height:27px; width:500px' id='txtTaxNum' name='TaxNum' />"
									+ "</div>"
									+ "<div class='clear'></div>"
								);

								$("#txtTaxNum").textbox({
									prompt: data.data[index].tip,
									required: data.data[index].isRequired
								});
							}
							else if (data.data[index].key == "AddressAndTel") {
								$("#ctnForm").append("<div class='titleDiv'>" + data.data[index].displayName + "：</div>"
									+ "<div class='contentDiv'>"
									+ "<input class='easyui-textbox' style='height:27px; width:500px' id='txtAddressAndTel' name='AddressAndTel' />"
									+ "</div>"
									+ "<div class='clear'></div>"
								);

								$("#txtAddressAndTel").textbox({
									prompt: data.data[index].tip,
									required: data.data[index].isRequired
								});
							}
							else if (data.data[index].key == "Bank") {
								$("#ctnForm").append("<div class='titleDiv'>" + data.data[index].displayName + "：</div>"
									+ "<div class='contentDiv'>"
									+ "<input class='easyui-textbox' style='height:27px; width:500px' id='txtBank' name='Bank' />"
									+ "</div>"
									+ "<div class='clear'></div>"
								);

								$("#txtBank").textbox({
									prompt: data.data[index].tip,
									required: data.data[index].isRequired
								});
							}
							else if (data.data[index].key == "BankAccount") {
								$("#ctnForm").append("<div class='titleDiv'>" + data.data[index].displayName + "：</div>"
									+ "<div class='contentDiv'>"
									+ "<input class='easyui-textbox' style='height:27px; width:500px' id='txtBankAccount' name='BankAccount' />"
									+ "</div>"
									+ "<div class='clear'></div>"
								);

								$("#txtBankAccount").textbox({
									prompt: data.data[index].tip,
									required: data.data[index].isRequired
								});
							}
							else if (data.data[index].key == "InvoiceId") {
								$("#ctnForm").append("<div class='titleDiv'>" + data.data[index].displayName + "：</div>"
									+ "<div class='contentDiv'>"
									+ "<input class='easyui-combobox' style='height:27px; width:500px' id='txtInvoice' name='InvoiceId' />"
									+ "&nbsp;&nbsp;<a href='javascript:void(0)' class='easyui-linkbutton' id='txtInvoiceClear' onclick='$(\"#txtInvoice\").combobox(\"clear\");'>@Resources.Clear</a>"
									+ "</div>"
									+ "<div class='clear'></div>"
								);

								var orgCount = 0;
								$("#txtInvoice").combobox({
									prompt: data.data[index].tip,
									required: data.data[index].isRequired,
									editable: false,
									valueField: "id",
									textField: "name",
									url: "@Url.Action(nameof(UtilityController.GetInvoiceTitle), nameof(UtilityController).GetControllerName())"
											+ "?conferenceId=" + $("#hidConferenceId").val(),
									onLoadSuccess: function(data) {
										orgCount = data.length;
									},
									onShowPanel: function () {
										if (orgCount < 10) {
											$(this).combobox("panel").height("auto");
										} else {
											$(this).combobox("panel").height(200);
										}
									}
								});
							}
							else if (data.data[index].key == "FavouriteTopic") {
								$("#ctnForm").append("<div class='titleDiv'>" + data.data[index].displayName + "：</div>"
									+ "<div class='contentDiv'>"
									+ "<input class='easyui-combobox' style='height:27px; width:500px' id='txtFavouriteTopic' name='FavouriteTopic' />"
									+ "&nbsp;&nbsp;<a href='javascript:void(0)' class='easyui-linkbutton' id='txtFavouriteTopicClear' onclick='$(\"#txtFavouriteTopic\").combobox(\"clear\");'>@Resources.Clear</a>"
									+ "</div>"
									+ "<div class='clear'></div>"
								);

								var orgCount = 0;
								$("#txtFavouriteTopic").combobox({
									prompt: data.data[index].tip,
									required: data.data[index].isRequired,
									editable: false,
									multiple: true,
									valueField: "id",
									textField: "name",
									url: "@Url.Action(nameof(UtilityController.GetTopic), nameof(UtilityController).GetControllerName())"
											+ "?conferenceId=" + $("#hidConferenceId").val(),
									onLoadSuccess: function(data) {
										orgCount = data.length;
									},
									onShowPanel: function () {
										if (orgCount < 10) {
											$(this).combobox("panel").height("auto");
										} else {
											$(this).combobox("panel").height(200);
										}
									},
									onHidePanel: function () { }
								});
							}
							else if (data.data[index].key == "ConcurrentEvent") {
								$("#ctnForm").append("<div class='titleDiv' >" +  data.data[index].displayName + "：</div>"
									+ "<div class='contentDiv' id='concurrentEvent' style='height:100%'>"
									+ " <input type='hidden' id='hidEventIdList' name='hidEventIdList'>"
									+ " <input type='hidden' id='hidCountList' name='hidCountList'>"
									+ "</div>"
									+ "<div class='clear'></div>"
								);
							}
							else if (data.data[index].key == "PaymentType") {
								if ($("#divCurrency").css("display") != "none") {
									$("#ctnForm").append("<div class='titleDiv'>" + data.data[index].displayName + "：</div>"
										+ "<div class='contentDiv'>"
										+ "<input class='easyui-combobox' style='height:27px; width:500px' id='txtPaymentType' name='PaymentTypeId' />"
										+ "&nbsp;&nbsp;<a href='javascript:void(0)' class='easyui-linkbutton' id='txtPaymentTypeClear' onclick='$(\"#txtPaymentType\").combobox(\"clear\");'>@Resources.Clear</a>"
										+ "</div>"
										+ "<div class='clear'></div>"
									);

									var orgCount = 0;
									$("#txtPaymentType").combobox({
										prompt: data.data[index].tip,
										required: data.data[index].isRequired,
										editable: false,
										valueField: "id",
										textField: "name",
										url: "@Url.Action(nameof(UtilityController.GetPayType), nameof(UtilityController).GetControllerName())"
												+ "?conferenceId=" + $("#hidConferenceId").val(),
										onLoadSuccess: function(data) {
											orgCount = data.length;
										},
										onShowPanel: function () {
											if (orgCount < 10) {
												$(this).combobox("panel").height("auto");
											} else {
												$(this).combobox("panel").height(200);
											}
										}
									});
								}
							}
							else {
								$("#ctnForm").append("<div class='titleDiv'>" + data.data[index].displayName + "：</div>"
									+ "<div class='contentDiv'>"
									+ "<input class='easyui-textbox' style='height:27px; width:500px' id='txt" + data.data[index].key + "' name='" + data.data[index].key + "' />"
									+ "</div>"
									+ "<div class='clear'></div>"
								);

								if (data.data[index].key.indexOf("Customize") >= 0) {
									$("#txt" + data.data[index].key).textbox({
										prompt: data.data[index].tip,
										required: data.data[index].isRequired
									});
								} else {
									$("#txt" + data.data[index].key).textbox({
										prompt: data.data[index].tip,
										required: data.data[index].isRequired,
										validType: "length[1,100]"
									});
								}
							}
						}

						//取同期活动
						setConcurrentEvent(dt.data.attendenceIdentityId, dt.data.currency);

						$("#txtMail").textbox("setValue", dt.data.mail);
						$("#txtFamilyName").textbox("setValue", dt.data.familyName);
						$("#txtFirstName").textbox("setValue", dt.data.firstName);
						$("#txtFullName").textbox("setValue", dt.data.fullName);
						$("#txtGender").combobox("setValue", dt.data.gender ? "@ConstValues.Gender.男" : "@ConstValues.Gender.女");
						$("#txtTitle").combobox("setValue", dt.data.title);
						$("#txtDegree").combobox("setValue", dt.data.degree);
						$("#txtJob").textbox("setValue", dt.data.job);
						$("#txtAffiliation").textbox("setValue", dt.data.affiliation);
						$("#txtDepartment").textbox("setValue", dt.data.department);
						$("#txtCountry").combobox("setValue", dt.data.country);
						$("#txtState").textbox("setValue", dt.data.state);
						$("#txtCity").textbox("setValue", dt.data.city);
						$("#txtAddress").textbox("setValue", dt.data.address);
						$("#txtZipCode").textbox("setValue", dt.data.zipCode);
						$("#txtTelephone").textbox("setValue", dt.data.telephone);
						$("#txtMobile").textbox("setValue", dt.data.mobile);
						$("#txtCardId").textbox("setValue", dt.data.cardId);
						$("#txtAttendenceIdentity").combobox("setValue", dt.data.attendenceIdentityId);
						$("#applyIdentity").val(dt.data.applyIdentity);
						$("#hidIdentityId").val(dt.data.attendenceIdentityId);
						$("#txtAttendence").combogrid("setValue", dt.data.attendenceFeeId);
						$("#txtPage").combogrid("setValue", dt.data.pageFeeId);
						$("#txtMeal").combogrid("setValue", dt.data.mealFeeId);
						$("#txtInvoiceTitle").combobox("setValue", dt.data.invoiceTitle);
						$("#txtInvoiceTitle").combobox("setText", dt.data.invoiceTitle);
						$("#txtTaxNum").textbox("setValue", dt.data.taxNum);
						$("#txtAddressAndTel").textbox("setValue", dt.data.addressAndTel);
						$("#txtBank").textbox("setValue", dt.data.bank);
						$("#txtBankAccount").textbox("setValue", dt.data.bankAccount);
						$("#txtInvoice").combobox("setValue", dt.data.invoiceId);
						if (dt.data.favouriteTopic != "") {
							$("#txtFavouriteTopic").combobox("setValues", dt.data.favouriteTopic);
						}
						$("#txtCustomize1").textbox("setValue", dt.data.customize1);
						$("#txtCustomize2").textbox("setValue", dt.data.customize2);
						$("#txtCustomize3").textbox("setValue", dt.data.customize3);
						$("#txtCustomize4").textbox("setValue", dt.data.customize4);
						$("#txtCustomize5").textbox("setValue", dt.data.customize5);
						$("#txtCustomize6").textbox("setValue", dt.data.customize6);
						$("#txtCustomize7").textbox("setValue", dt.data.customize7);
						$("#txtCustomize8").textbox("setValue", dt.data.customize8);
						$("#txtCustomize9").textbox("setValue", dt.data.customize9);
						$("#txtCustomize10").textbox("setValue", dt.data.customize10);

						$("#concurrentEventList").val(dt.data.concurrentEventList);
						$("#concurrentEventCount").val(dt.data.concurrentEventCount);
						$("#txtPaymentType").combobox("setValue", dt.data.paymentTypeId);

						//同期活动回填值
						fillback(dt.data.concurrentEventList, dt.data.concurrentEventCount, loading)
					}
				});
			}
		});

		$("#detailWindow").window("open");
	}

	function countPrice() {
		var checkboxList = document.getElementsByName("eventCheckBox");
		var eventIdList = "";
		var countList = "";
		var currency = $("#eventCurrency").val();
		if (currency == "@ConstValues.Currency.美元") {
			currency = "@Resources.Dollar";
		} else {
			currency = "@Resources.Yuan";
		}

		for(var i=0; i<checkboxList.length; i++) {
			var checkbox = checkboxList[i];
			if (checkbox.checked == true) {
				var lastndex = checkboxList[i].id.substr(checkboxList[i].id.length-1,1)
				if (eventIdList == "") {
					eventIdList += $("#eventId"+lastndex).val();
					countList += $("#eventNumber"+lastndex).combobox("getValue");
				} else {
					eventIdList += ","+$("#eventId"+lastndex).val();
					countList += ","+$("#eventNumber"+lastndex).combobox("getValue");
				}
			}
		}
		$("#hidEventIdList").val(eventIdList);
		$("#hidCountList").val(countList);
	}

	function selectEvent(obj) {
		var number = obj.id.substr(obj.id.length-1,1)
		if (obj.checked) {
			$("#eventNumber"+number).combobox("select", 1);
			$("#eventNumber"+number).combobox("readonly",false);
		} else {
			$("#eventNumber"+number).combobox("setValue", "")
			$("#eventNumber"+number).combobox("readonly",true);
		}
	}

	function showPersonalData(id, conferenceName, conferenceId) {
		$("#personalWindowTitle").text("@Resources.ConferenceName："+conferenceName);
		var url = "@Url.Action(nameof(UtilityController.GetPersonalData),
				nameof(UtilityController).GetControllerName())" + "?id=" + id;
		$.get(encodeURI(url), null, function (data, textStatus, jqXHR) {
			if (data.result == "@ConstValues.AjaxFailResult") {
				common.showError(data.message,true);
			} else {
				$("span[id='attendid']").html(data.data.attendid);
				$("span[id='attendenceIdentity']").html(data.data.attendenceIdentity);
				$("span[id='fullNamePersonal']").html(data.data.fullname);
				$("#qrCode").attr("src", "@Url.Action(nameof(UtilityController.QrCodeImg), nameof(UtilityController).GetControllerName())" + "/" + data.data.id);
				$("span[id='essayPersonal']").html(data.data.essay);
				$("span[id='mailPersonal']").html(data.data.mail);
				$("span[id='affiliationPersonal']").html(data.data.affiliation);
				$("span[id='telePersonal']").html(data.data.tele);
				$("span[id='countryPersonal']").html(data.data.country);
				$("span[id='addressPersonal']").html(data.data.address);
				$("span[id='feePersonal']").html(data.data.fee);
				if (null != data.data.payType && "" != data.data.payType) {
					$("span[id='paidTypePersonal']").html(data.data.payType);
				} else {
					$("span[id='paidTypePersonal']").html("@Resources.HasNotPaid");
				}
				$("span[id='sp+Customize1']").html(data.data.customize1);
				$("span[id='sp+Customize2']").html(data.data.customize2);
				$("span[id='sp+Customize3']").html(data.data.customize3);
				$("span[id='sp+Customize4']").html(data.data.customize4);
				$("span[id='sp+Customize5']").html(data.data.customize5);
				$("span[id='sp+Customize6']").html(data.data.customize6);
				$("span[id='sp+Customize7']").html(data.data.customize7);
				$("span[id='sp+Customize8']").html(data.data.customize8);
				$("span[id='sp+Customize9']").html(data.data.customize9);
				$("span[id='sp+Customize10']").html(data.data.customize10);
				$("span[id='otherRemarkPersonal']").html(data.data.remark);
				$("span[id='paymentHasPay']").html(data.data.paymentHasPay);
				$("span[id='invoiceTitleForPersonal']").html(data.data.invoiceTitle);
				$("span[id='TaxNumForPersonal']").html(data.data.taxNum);
				$("span[id='AddressAndMobileForPersonal']").html(data.data.addressAndTel);
				$("span[id='BankAndAccountForPersonal']").html(data.data.bankAndAccount);
				$("span[id='InvoiceNumForPersonal']").html(data.data.invoiceNum);
				$("span[id='hasPaidForPersonal']").html(data.data.hasPaid);
				$("span[id='essayIdForPersonal']").html(data.data.essay);
				$("span[id='reportIdForPersonal']").html(data.data.reportId);
				document.getElementById("paymentDetailForPersonal").innerText=data.data.feeDetail
				$("span[id='payDateForPersonal']").html(data.data.paymentTime);

				$("#personalWindow").window("open");
			}
		});
	}

	function deleteData(id, name) {
		var confirmMessage = "@Resources.CfmDelete";
		confirmMessage = confirmMessage.replace(/\{0\}/g, name);
		$.messager.confirm("@Resources.Delete", confirmMessage, function (r) {
			if (r) {
				$("#hidAttendenceId").val(id);
				$.post("@Url.Action(nameof(ConferenceAttendenceInfoController.Delete),
					nameof(ConferenceAttendenceInfoController).GetControllerName(),
					new { ConferenceId = Model.ConferenceId })",
					$("#frmForm").serialize(),
					function(data, textStatus, jqXHR) {
						if (data.result == "@ConstValues.AjaxFailResult") {
							common.showError(data.message);
						} else {
							common.showSuccess(data.message, true);
							$("#dataGrid").datagrid("reload");
						}
					}
				);
			}
		});
	}

	function openOtherFee() {
		$("#ddlFeeName").combogrid("setValue", "");
		$("#ddlCount").combobox("setValue", "");
		$("#txtPrice").textbox("setValue", "");
		$("#txtCurrency").textbox("setValue", "");

		var orgCount = 0;
		$("#ddlFeeName").combogrid({
			required: true,
			editable: false,
			idField: "id",
			textField: "name",
			url: "@Url.Action(nameof(UtilityController.GetFeeOther), nameof(UtilityController).GetControllerName())"
					+ "?conferenceId=" + $("#hidConferenceId").val() + "&currency=" + $("#hidCurrency").val(),
			columns:[[
				{ field: "id", hidden: true },
				{ field: "name", title: "@Resources.FeeName", width: 170 },
				{ field: "currency", title: "@Resources.Currency", width: 100 },
				{ field: "price", title: "@Resources.Price", width: 100 },
				{ field: "minCount", title: "@Resources.MinCount", width: 100 },
				{ field: "maxCount", title: "@Resources.MaxCount", width: 100 },
				{ field: "recommendation", title: "@Resources.Recommendation", width: 200 },
			]],
			onLoadSuccess: function(data) {
				orgCount = data.length;
			},
			onShowPanel: function () {
				if (orgCount < 10) {
					$(this).combogrid("panel").height("auto");
				} else {
					$(this).combogrid("panel").height(200);
				}
			},
			onSelect: function(rowIndex, rowData) {
				$("#txtPrice").textbox("setValue", rowData.price);
				$("#txtCurrency").textbox("setValue", rowData.currency);

				var data = [];
				for ( var index = rowData.minCount; index <= rowData.maxCount; index++) {
					data.push({"index": index});
				}

				$("#ddlCount").combobox({
					data:data,
					editable: false,
					required: true,
					valueField: "index",
					textField: "index"
				});
			}
		});

		$("#otherFeeDG").datagrid({
			url: "@Url.Action(nameof(ConferenceAttendenceInfoController.GetOtherFeeData),
			nameof(ConferenceAttendenceInfoController).GetControllerName())",
			method: "get",
			fitColumns: true,
			height: 347,
			nowrap: false,
			striped: true,
			columns: [[
				{
					field: "operate", title: "@Resources.Operate", align: "center", width: 150,
					formatter: function(value, rec, index) {
						var tmp = rec.feeName == null ? "" : rec.feeName.replace(new RegExp("'",'g'),"’").replace(new RegExp('"','g'),"“");
						var strInfo = "<a href='#' style='color:#DC143C;font-weight:bold;text-decoration:underline;' onclick='deleteOtherFee(\""
							+ rec.id + "\",\"" + tmp + "\")'>@Resources.Delete</a>";
						return strInfo;
					}
				},
				{ field: "id", hidden: true },
				{ field: "feeName", title: "@Resources.FeeName", align: "center", width: 150 },
				{ field: "count", title: "@Resources.Count", align: "center", width: 100 },
				{ field: "unitPrice", title: "@Resources.UnitPrice", align: "center", width: 100 },
				{ field: "currency", title: "@Resources.Currency", align: "center", width: 100 },
				{ field: "price", title: "@Resources.Price", align: "center", width: 100 },
			]],
			onBeforeLoad: function(param) {
				param.id = $("#hidAttendenceId").val();
				param.random = Math.random();
			},
		});

		$("#otherFeeWindow").window("open");
	}

	function addOtherFee() {
		$("#hidFeeAttendenceId").val($("#hidAttendenceId").val());
		$("#hidFeeAttendenceId").val($("#hidAttendenceId").val());
		var isValid = $("#frmFee").form("validate");

		if (isValid)
		{
			$.messager.confirm("@Resources.Save", "@Resources.CfmSave", function (r) {
				if (r) {
					var loading = layer.load(0,  {
						shade: [0.4,"#fff"]
					});
					$.post("@Url.Action(nameof(ConferenceAttendenceInfoController.CreateOtherFee),
					nameof(ConferenceAttendenceInfoController).GetControllerName())",
					$("#frmFee").serialize(),
					function(data, textStatus, jqXHR) {
						layer.close(loading);
						if (data.result == "@ConstValues.AjaxFailResult") {
							common.showError(data.message);
						} else {
							common.showSuccess(data.message, true);
							$("#otherFeeDG").datagrid("reload");

							$("#ddlFeeName").combobox("setValue", "");
							$("#ddlCount").combobox("setValue", "");
							$("#txtPrice").textbox("setValue", "");
							$("#txtCurrency").textbox("setValue", "");
						}
					}
					);
				}
			});
		}
	}

	function deleteOtherFee(id, name) {
		var confirmMessage = "@Resources.CfmDelete";
		confirmMessage = confirmMessage.replace(/\{0\}/g, name);
		$.messager.confirm("@Resources.Delete", confirmMessage, function (r) {
			if (r) {
				$("#hidFeeId").val(id);
				$.post("@Url.Action(nameof(ConferenceAttendenceInfoController.DeleteOtherFee),
				nameof(ConferenceAttendenceInfoController).GetControllerName())",
					$("#frmFee").serialize(),
					function(data, textStatus, jqXHR) {
						if (data.result == "@ConstValues.AjaxFailResult") {
							common.showError(data.message);
						} else {
							common.showSuccess(data.message, true);
							$("#otherFeeDG").datagrid("reload");
						}
					}
				);
			}
		});
	}

	function saveData() {
		var isValid = $("#frmForm").form("validate");

		if (isValid) {
			$.messager.confirm("@Resources.Save", "@Resources.CfmSave", function (r) {
				if (r) {
					var loading = layer.load(0,  {
						shade: [0.4,"#fff"]
					});

					$("#frmForm").form({
						iframe: false,
						success: function (data) { }
					});

					$("#frmForm").form("submit", {
						url: "@Url.Action(nameof(ConferenceAttendenceInfoController.Modify), nameof(ConferenceAttendenceInfoController).GetControllerName() )",
						onSubmit: function (param) {
							param.random = Math.random();
						},
						success: function(data) {
							layer.close(loading);
							var data = eval("(" + data + ")");
							if (data.result == "@ConstValues.AjaxFailResult") {
								common.showError(data.message);
							} else {
								common.showSuccess(data.message, true);
								$("#detailWindow").window("close");
								$("#dataGrid").datagrid("reload");
							}
						}
					});
				}
			});
		}
	}

	function downloadImportTemplate() {
		var url = "@Url.Action(nameof(ConferenceAttendenceInfoController.DownloadImportTemplate),
		nameof(ConferenceAttendenceInfoController).GetControllerName())";
		$("#iframeDownload").attr("src", url);
	}

	function openImport() {
		$("#importWindow").window("open");
	}

	function importData() {
		var loading = layer.load(0,  {
			shade: [0.4,"#fff"]
		});

		$("#hidIptConferenceId").val("@Model.ConferenceId");

		$("#frmImport").form({
			iframe: false,
			success: function (data) { }
		});

		$("#frmImport").form("submit", {
			url: "@Url.Action(nameof(ConferenceAttendenceInfoController.Import), nameof(ConferenceAttendenceInfoController).GetControllerName(),
				new { ConferenceId = Model.ConferenceId })",
			onSubmit: function (param) {
				param.random = Math.random();
			},
			success: function (data) {
				layer.close(loading);
				data = JSON.parse(data);
				switch (data.result) {
					case "@ConstValues.AjaxSuccessResult":
						common.showSuccess(data.message, true);
						$("#importWindow").window("close");
						$("#dataGrid").datagrid("reload");
						break;
					case "@ConstValues.AjaxFailResult":
						common.showError(data.message);
						$("#dataGrid").datagrid("reload");
						break;
				}
			}
		});
	}

	function openQuiz() {
		var rows = $("#dataGrid").datagrid("getChecked");
		if (rows.length > 0) {
			$("#sendWindow").window("open");
		} else {
			$.messager.alert("@Resources.Export", "@Resources.MsgRecordMust", "warning");
		}
	}

	function sendQuiz() {
		var rows = $("#dataGrid").datagrid("getChecked");
		if (rows.length > 0) {
			var confirmMessage = "@Resources.CfmSend";
			$.messager.confirm("@Resources.Send", confirmMessage, function (r) {
				if (r) {
					var loading = layer.load(0, {
						shade: [0.4, "#fff"]
					});

					$("#frmSend").form({
						iframe: false,
						success: function (data) { }
					});

					$("#frmSend").form("submit", {
						url: "@Url.Action(nameof(ConferenceAttendenceInfoController.SendMail), nameof(ConferenceAttendenceInfoController).GetControllerName())",
						success: function (data) {
							layer.close(loading);
							data = JSON.parse(data);
							switch (data.result) {
								case "@ConstValues.AjaxSuccessResult":
									common.showSuccess(data.message, true);
									$("#dataGrid").datagrid("reload");
									break;

								case "@ConstValues.AjaxFailResult":
									common.showError(data.message);
									break;
							}
							$("#sendWindow").window("close");
						},
						onSubmit: function (param) {
							var ids = "";
							for (var i = 0; i < rows.length; i++) {
								ids += i == 0 ? "" : "&";
								ids += rows[i].id;
							}
							param.allId = ids;
							param.conferenceId = $("#hidConferenceId").val();
							param.quizId = $("#ddlQuiz").combobox("getValue");
						},
					});
				}
			});
		} else {
			$.messager.alert("@Resources.Send", "@Resources.MsgRecordMust", "warning");
		}
	}

	function setConcurrentEvent(identityId, currency) {
		//取同期活动
		var newUrl = "@Url.Action(nameof(UtilityController.GetConcurrentEvent),
				nameof(UtilityController).GetControllerName())"
				+ "?conferenceId=" + $("#hidConferenceId").val()
				+ "&identity=" + identityId
				+ "&currency=" + currency;
		$.get(newUrl, null, function (data, textStatus, jqXHR) {
			if (data.result == "@ConstValues.AjaxSuccessResult") {
				for (var j = 0; j < data.data.length; j++) {
					if (data.data[j].hasEvent) {
						var divText = "";
						divText +="<table id='eventTable"+j+"' name='eventTable' style='font-size:16px;margin-bottom:30px;width:500px' hidden>"
						divText +=" <tr>"
						divText += " <td valign='top' rowspan='6' style='width:13px'><input type='checkbox' id='eventCheckBox"+j+"' name='eventCheckBox' onchange='selectEvent(this)' style='margin-top:5px'></td>"
						if (data.data[j].link == null) {
							divText += " <td style='padding-left:30px'> "+data.data[j].eventName+"</td>"
						} else {
							divText += " <td style='padding-left:30px'> <a href='"+data.data[j].link+"' style='color:#1874CD;text-decoration:underline;' target='_blank'>"+data.data[j].eventName+"</a></td>"
						}
						divText += " </tr>"
						divText += " <tr>"
						divText += " <td style='padding-left:30px'>@Resources.Time："+data.data[j].eventTime+"</td>"
						divText += " <input type='hidden' id='eventPrice"+j+"' value='"+data.data[j].price+"'>"
						divText += " <input type='hidden' id='eventCurrency"+j+"' value='"+data.data[j].currency+"'>"
						divText += " <input type='hidden' id='eventId"+j+"' value='"+data.data[j].id+"' name='"+data.data[j].id+"'>"
						divText += " </tr>"
						divText += " <tr>"
						divText += " <td style='padding-left:30px'>@Resources.Place："+data.data[j].eventPlace+"</td>"
						divText += " </tr>"
						if (data.data[j].contact != "" || data.data[j].contactPhone != "") {
							var contactText = data.data[j].contact;
							if (data.data[j].contact != "" && data.data[j].contactPhone != "") {
								contactText += " ,  "
							}
							contactText += data.data[j].contactPhone

							divText += " <tr>"
							divText += " <td style='padding-left:30px'>@Resources.ContactInfomation："+contactText+"</td>"
							divText += " </tr>"
						}
						divText += " <tr>"
						divText += " <td style='padding-left:30px'>@Resources.Fee："+data.data[j].fee +"</td>"
						divText += " </tr>"
						divText += " <tr>"
						divText += " <td style='padding-left:30px'>@Resources.AttandenceCount：<input class='easyui-combobox' style='height:27px; width:60px' id='eventNumber"+j+"' name='eventNumber' /></td>"
						divText += " </tr>"
						divText += " </table>"

						$("#concurrentEvent").append(divText);

						$("#eventNumber"+j).combobox({
							editable: false,
							valueField: "id",
							textField: "name",
							data:[{}],
							onLoadSuccess: function(data) {
								orgCount = data.length;
							},
							onShowPanel: function () {
								if (orgCount < 5) {
									$(this).combobox("panel").height("auto");
								} else {
									$(this).combobox("panel").height(200);
								}
							},
							onChange:function(){
								countPrice();
							}
						});
						var comboboxData = [];
						if(data.data[j].number != null){
							for (var k = 1 ; k<=data.data[j].number;k++) {
								var map = {}
								map.id = k;
								map.name = k;
								comboboxData.push(map)
							}
						}
						$("#eventNumber"+j).combobox("loadData", comboboxData)
						$("#eventNumber"+j).combobox("setValue", "")
						$("#eventNumber"+j).combobox("readonly",true);
					}
				}
			}
		});
	}

	function fillback(eventList, eventCount, loading) {
		var concurrentEventList = [];
		var concurrentEventCount = [];
		if (eventList != null && eventList != "") {
			concurrentEventList = eventList.split(",");
		}
		if (eventCount != null && eventCount != "") {
			concurrentEventCount = eventCount.split(",");
		}
		setTimeout(function () {
			var tableList = document.getElementsByName("eventTable")
			for (var i = 0; i < tableList.length; i++) {
				var tableId = tableList[i].id;
				$("#"+tableId).show();
			}

			for (var i = 0; i < concurrentEventList.length; i++) {
				var obj = document.getElementsByName(concurrentEventList[i])[0];
				if (obj != null) {
					var number = obj.id.substr(obj.id.length-1, 1);
					document.getElementById("eventCheckBox"+number).checked =true;
					$("#eventNumber"+number).combobox("select", concurrentEventCount[i]);
					$("#eventNumber"+number).combobox("readonly", false);
				}
			}
			layer.close(loading);
		}, 1000);
	}
</script>
}